import { Position } from "./interface";

interface BackgrounProps {
  position: Position;
}

function Background({ position }: BackgrounProps) {
  return (
    <div
      style={{
        position: "absolute",
        transform: `translate(${position.x}px, ${position.y}px)`,
        width: 250,
        height: 250,
        backgroundColor: "rgba(200, 200, 200, 0.2)"
      }}
    />
  );
}

export default Background;
